package com.ruoyi.common.domain.light;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.enums.LightErrStatusEnum;
import com.ruoyi.common.enums.LightStatusEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 安灯异常处理日志表 lit_err_log
 *
 * @author ruoyi
 * @date 2022-02-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lit_err_log")
@NoArgsConstructor
public class LitErrLog implements Serializable {


    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId
    private Long id;
    /**
     * 异常工单号
     */
    private String errNo;
    /**
     * 安灯状态 ok 正常  err 异常
     */
    private LightStatusEnum litStatus;
    /**
     * 异常id
     */
    private Long errId;
    /**
     * 操作时间
     */
    private LocalDateTime time;
    /**
     * 图片
     */
    private List<String> pics;
    /**
     * 操作人
     */
    private String operBy;
    /**
     * 状态 init 触发  check 签到  lift 解除  ok 复线, up 异常升级
     */
    private LightErrStatusEnum status;
    /**
     * 处理时长
     */
    private Long costTimes;

    private String remark;

    public LitErrLog(String errNo, Long errId, LightStatusEnum litStatus, LightErrStatusEnum status, LocalDateTime time, String operBy, String remark, Long costTimes) {
        this.errNo = errNo;
        this.litStatus = litStatus;
        this.errId = errId;
        this.time = time;
        this.operBy = operBy;
        this.status = status;
        this.remark = remark;
        this.costTimes = costTimes;
    }

}